Page({
    data: {
        number: 30
    },
    clickxlsx: function(){
        this.onPullDownRefresh();
    },
    onLoad: function (options) {
        console.log("onLoad");
    },
    onShow: function (options) {
        console.log("onShow");
    },
    onReady: function () {
        console.log("onReady");
    },
    onHide: function () {
        console.log("onHide");
    },
    onUnload: function () {  // 返回上一页
        console.log("onUnload");
    },
    onPullDownRefresh: function () {  // 下载刷新
        console.log("onPullDownRefresh");
        this.setData({
            number: this.data.number + 1
        });
    },
    onReachBottom: function () {  // 上拉加载
        console.log("onReachBottom");
        // this.setData({
        //     number: this.data.number + 1
        // });
    },
    onShareAppMessage: function () {  // 分享
        console.log("onShareAppMessage");
    }
})